package thread;

public class ThreadDemo {
    public static void main(String[] args) {
        Thread a1 = new MyThread();
        Thread a2 = new MyThread2();
        Thread a3 = new MyThread3();
        Thread a4 = new MyThread4();
        a1.start();
        a2.start();
        a3.start();
        a4.start();
    }
}

class MyThread extends Thread {
    public void run() {
        for (int i = 0; i < 10000; i++) {
            System.out.println("哦吼");
        }
    }
}

class MyThread2 extends Thread {
    public void run() {
        for (int i = 0; i < 10000; i++) {
            System.out.println("多线程");
        }
    }

}

class MyThread3 extends Thread {
    public void run() {
        for (int i = 0; i < 10000; i++) {
            System.out.println("多");
        }
    }

}
class MyThread4 extends Thread {
    public void run() {
        for (int i = 0; i < 10000; i++) {
            System.out.println("线");
        }
    }

}


